/* styles.css */
body {
    background-image: url('../imgs/dahezhao1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 修改为 flex-start 以使内容从顶部开始 */
    min-height: 100vh;
    margin: 0;
    flex-direction: column; /* 添加列方向 */
}

.title-area {
    margin-bottom: 20px; /* 增加标题和主功能框之间的间距 */
    font-size: 25px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    color: red;
    font-size: 40px;
}

#main-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%; /* 缩小主功能框宽度 */
    max-width: 200px;
    margin: 0 auto; /* 添加 margin 以使主功能框居中 */
    position: relative; /* 添加相对定位 */
}

.input-section {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    width: 100%;
}

.input-group label {
    display: inline-block;
    width: 150px;
    text-align: right;
    margin-right: 10px; /* 增加标签和输入框之间的间距 */
}

.input-group input {
    flex: 0.8;
    padding: 5px;
}

#add-button {
    border-color: #cfc085;
    background-color: rgba(251, 2, 2, 0.7);
    color: aliceblue;
    border-style: hidden;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute; /* 修改为 absolute 以使其相对于父容器定位 */
    bottom: 20px; /* 距离底部20px */
    right: 20px; /* 距离右边20px */
}

@media (min-width: 1024px) {
    #main-container {
        width: 50%;
        max-width: 600px;
    }
}

@media (max-width: 1023px) {
    #main-container {
        width: 90%;
        max-width: 600px;
    }
}

/* 弹出窗口 */
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#popup p {
    margin-bottom: 10px;
}

#popup input {
    margin-bottom: 10px;
    padding: 5px;
    width: 100%;
}

#popup button {
    padding: 5px 10px;
}

/* 新增的红色框区域样式 */
.join-message {
    margin-top: 20px;
    padding: 10px;
    color: red;
    border-radius: 5px;
    text-align: center;
    font-size: 30px;
    width: 100%;
    max-width: 600px;
}

/* 图片区域样式 */
.image-container {
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    max-width: 150px;
}

.image-container img {
    width: 142%;
    height: 300px;
}

/* 固定图片区域 */
.image-container {
    position: absolute;
    bottom: 10px;
    left: 20px;
    width: 100px;
    height: 300px;
    overflow: hidden; /* 确保图片不超出容器 */
}
